package common

import (
	"time"
)

type AutoincrID struct {
	ID int32 `xorm:"pk autoincr not null index comment('自增ID')"`
}

type CommonAT struct {
	CreatedAt time.Time `xorm:"created comment('创建时间')"`
	UpdatedAt time.Time `xorm:"updated comment('更新时间')"`
}

type CommonATBeDel struct {
	CreatedAt time.Time `xorm:"created comment('创建时间')"`
	UpdatedAt time.Time `xorm:"updated comment('更新时间')"`
	DeletedTS int32     `xorm:"deleted_ts default(0) comment('DeletedTS') index"`
}

type SFID struct {
	SFID int64 `xorm:"sfid not null comment('分布式ID（雪花）') index unique"`
}

type DeleteStatus int32 // 删除状态

const (
	ISDEL_FALSE DeleteStatus = iota // 删除
	ISDEL_TRUE                      // 正常
)
